home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 676-700 / 699 / sizer / sizer.h < prev    next >
C/C++ Source or Header  |  1995-03-18  |  2KB  |  64 lines

  1. /* Sizer.h
  2.  
  3.    by Fabbian G. Dufoe, III
  4.       350 Ling-A-Mor Terrace South
  5.       St. Petersburg, Florida  33705
  6.       813-823-2350
  7.  
  8.       GENIE: F.DUFOE3
  9.  
  10.    This software is in the public domain.  You may use it any way you wish.
  11.  
  12.    This file contains the definitions and declarations used in Sizer.
  13.  
  14.    Revision summary:
  15.    15 October 1991: Initial release
  16.  
  17.    13 June 1992:
  18.       Replaced "blocks" field in record structure with OFSblocks and
  19.       FFSblocks for reporting both old file system and fast file system
  20.       blocks.
  21. */
  22.  
  23. #include <proto/all.h>
  24. #include <stdlib.h>
  25.  
  26. enum TCode        /* Transaction code */
  27. {
  28.    CLOSEIO,       /* Program is finished with I/O channel, close it. */
  29.    DONE,          /* Program completed normally. */
  30.    FAIL,          /* Program failed, stop immediately. */
  31.    NORM           /* Program operating normally. */
  32. };
  33.  
  34. struct record
  35. {
  36.    enum TCode code;  /* Transaction code */
  37.    long bytes;       /* Number of bytes in the file */
  38.    long OFSblocks;   /* Number of OFS blocks in the file */                   /* 13 June 1992 */
  39.    long FFSblocks;   /* Number of FFS blocks in the file */                   /* 13 June 1992 */
  40.    long files;       /* Number of files sized so far */
  41.    long dirs;        /* Number of directories sized so far */
  42. };
  43.  
  44.  
  45. #ifndef __NOPROTO
  46. #ifndef __PROTO
  47. #define __PROTO(a) a
  48. #endif
  49. #else
  50. #ifndef __PROTO
  51. #define __PROTO(a) ()
  52. #endif
  53. #endif
  54.  
  55.  
  56. /* Prototypes for functions defined in Sizer.c */
  57.  
  58. void main __PROTO((int argc,
  59.                    char **argv));
  60.  
  61. /* Prototypes for functions defined in SizerW.c */
  62.  
  63. void SizerIO __PROTO((struct record *Record));
  64.